<?php
namespace Zxf5115\Laravel\Label\Controllers\Api;

use Zxf5115\Laravel\Kernel\Controllers\Api\ApiController;

/**
 * @author zhangxiaofei [<1326336909@qq.com>]
 * @dateTime 2025-10-08
 *
 * 标签控制器类
 */
class LabelController extends ApiController
{
  /**
   * 允许客户端查询的字段
   */
  protected array $allowParams = [
    'type',
  ];

  /**
   * 排序规则
   */
  protected array $sortRules = [
    ['key' => 'sort', 'value' => 'desc'],
    ['key' => 'create_time', 'value' => 'desc'],
    ['key' => 'id', 'value' => 'desc'],
  ];
}
